package add__2_basalsyntax;

import java.util.Scanner;

public class _Scanner {
    //Scanner运行时输入数据时，以一个空格或换行作为一个缓冲区，即以一个空格或换行结束一次数据的输入

    public static void main(String[] args) {
        //创建对象
        Scanner input = new Scanner(System.in);
        System.out.println("请输入嫦娥的信息：");
        System.out.println("请输入姓名:");
        String name = input.next();
        System.out.println("请输入年龄:");
        int age = input.nextInt();
        System.out.println("请输入性别:");
        String sex = input.next();
        System.out.println("请输入体重:");
        float weight = input.nextFloat();
        System.out.println("请输入地址:");
        String address = input.next();
        System.out.println("请输入是否已婚:");
        String isnot = input.next();
        System.out.println("信息如下：");
        System.out.println("\t姓名：" + name);
        System.out.println("\t年龄：" + age);
        System.out.println("\t性别：" + sex);
        System.out.println("\t体重：" + weight);
        System.out.println("\t地址：" + address);
        System.out.println("\t婚否：" + isnot);
        
        
        
        //键入数组
        int[]arr = new int[5];
        for(int i = 0; i < arr.length; i++) {
            arr[i] = input.nextInt();
            System.out.print(arr[i] + "_");
        }
        
    }
}
